import {HTTP} from "../util/http"

class LikeModel extends HTTP{
    like(behavior,artID,category){
        debugger
        let url=behavior==='like'?'/like':'/like/cancel'
        this.request({
            url:url,
            method:'POST',
            data:{
                art_id:artID,
                type:category
            }

        })
    }
    getClassicLikeStatus(artID,category,sCallback){
        this.request({
            url:'/classic/'+category+'/'+artID+'/favor',
            success:sCallback
        })
    }










}

export {LikeModel}
